{include file="public/meta" /}
<title>订单详情</title>
</head>
<body>
<article class="cl pd-20">
    <form class="form form-horizontal" id="form-member-add">
        <div id="tab-system" class="HuiTab">
            <div class="tabBar cl">
                <span>基本信息</span>
                <span>发货信息</span>
                <span>购买产品</span>
                <span>配送地址</span>
            </div>
            <div class="tabCon">
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>订单号：</label>
                    <div class="formControls col-xs-8 col-sm-9">{$order['order_no']}</div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>支付方式：</label>
                    <div class="formControls col-xs-8 col-sm-9">{:config('pay_type_arr')[$order['pay_type']]}</div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>在线支付金额：</label>
                    <div class="formControls col-xs-8 col-sm-9">{$order['sum']}</div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>优惠金额：</label>
                    <div class="formControls col-xs-8 col-sm-9">{$order['coupon_money']}</div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>运费：</label>
                    <div class="formControls col-xs-8 col-sm-9">{$order['cost']}</div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>下单时间：</label>
                    <div class="formControls col-xs-8 col-sm-9">{$order['add_time']}</div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>订单状态：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        {switch name="order.status"}
                        {case value="0"}待支付{/case}
                        {case value="1"}<span style="color: red">待发货</span>{/case}
                        {case value="2"}<span style="color: #dd514c">等待用户收货</span>{/case}
                        {case value="5"}<span style="color: #9c9c9c">交易完成</span>{/case}
                        {/switch}
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>付款时间：</label>
                    <div class="formControls col-xs-8 col-sm-9">{$order['pay_time']|default='--'}</div>
                </div>
            </div>
            <div class="tabCon">
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>发货人：</label>
                    <div class="formControls col-xs-8 col-sm-9">{$order['send_name']|default='--'}</div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>发货单号：</label>
                    <div class="formControls col-xs-8 col-sm-9">{$order['send_no']|default='--'}</div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>发货时间：</label>
                    <div class="formControls col-xs-8 col-sm-9">{$order['send_time']|default='--'}</div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>收货时间：</label>
                    <div class="formControls col-xs-8 col-sm-9">{$order['confirm_time']|default='--'}</div>
                </div>
            </div>
            <div class="tabCon">

                        <table class="table table-border table-bordered table-hover table-bg table-sort">
                            <thead>
                            <tr class="text-c">
                                <th width="40">编号</th>
                                <th width="60">产品名称</th>
                                <th width="100">产品图片</th>
                                <th width="100">购买价格</th>
                                <th width="100">购买数量</th>
                            </tr>
                            </thead>
                            {volist name="orderDetail" id="val"}
                            <tbody>
                            <tr class="text-c">
                                <td>{$val['id']}</td>
                                <td><img width="60" class="product-thumb" src="{$val['goods_img_url']}"></td>
                                <td>{$val['goods_title']}</td>
                                <td>{$val['goods_sell_price']}</td>
                                <td>{$val['goods_count']}</td>
                            </tr>
                            </tbody>
                            {/volist}
                        </table>
            </div>
            <div class="tabCon">
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>地址：</label>
                    <div class="formControls col-xs-8 col-sm-9">{$order['address']|default='--'}</div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>联系人：</label>
                    <div class="formControls col-xs-8 col-sm-9">{$order['name']|default='--'}</div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>联系电话：</label>
                    <div class="formControls col-xs-8 col-sm-9">{$order['mobile']|default='--'}</div>
                </div>
            </div>
        </div>
    </form>
</article>

<!--_footer 作为公共模版分离出去-->
{include file="public/footer" /}
<!--/_footer 作为公共模版分离出去-->

<script type="text/javascript">
    $(function(){
        $('.skin-minimal input').iCheck({
            checkboxClass: 'icheckbox-blue',
            radioClass: 'iradio-blue',
            increaseArea: '20%'
        });
        $("#tab-system").Huitab({
            index:0
        });
    });
</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
